package com.ssn.jse.innerClass;

import java.sql.Date;

public class AnonymousInnerClass
{
	@SuppressWarnings("deprecation")
	public String get(Date date)
	{
		return date.toLocaleString();
	}

	public static void main(String[] args)
	{
		AnonymousInnerClass test = new AnonymousInnerClass();
		String str = test.get(new Date(0)
		{
			public String toLocaleString(){
				return "hello world";
			}
		});
		System.out.println(str);

	}
}
